Can we use a DOORS client to determine exactly which Licensing server is currently in use?
I'm aware of these, but its not quite all the info:
doorsInfo(infoSupportId)) // From License File, same as in Help>>About
doorsInfo(infoSupportPassword)) // From License File, same as in Help>>About
// Following are environment variables used to get licensing
// but they don't say which one was actually used
getenv("DOORS_License_File") // Not in use anymore
getenv("LM_License_File") // v5? variable
getenv("TELELOGIC_License_File") // v7+ variable
getenv("IBM_License_File") // v93+ variable
Now I can try to get the Support ID and Password from every available license server and compare that to the above results; problem is right now we are using identical licensing on our production and test servers and that info doesn't distinquish between the two.
Is it possible there is some Windows/DOS command that will list foreign ports currently in connection to the current PC?
llandale - Fri Jul 15 12:02:50 EDT 2011 |
|
Re: Where is Licensing? BDavenport - Wed Jul 20 20:09:26 EDT 2011
You can use 'netstat -a' at a DOS command prompt to list ports and connection status on a Windows machine. That will give you protocol, local address, foreign address, state, and PID. PID's corresponde to Windows Task Master Process IDs.
|
|
Re: Where is Licensing? Mathias Mamsch - Thu Jul 21 04:31:14 EDT 2011
I doubt that the network connections will be of any use for you. The DOORS client will only occasionally connect to the license server, so you would need some luck to see the connection over netstat. Additionally it is not 100% reliable to find the right server in all the connections, you would need to identify the connection by the port number which could be used randomly by another application.
What exactly are you trying to do? Why would you need the License Server from DXL? Regards, Mathias
Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS
|
|
Re: Where is Licensing? llandale - Thu Jul 21 14:52:45 EDT 2011
Netstat dump gobly-gook to me.
From DXL I need to know exactly which license server is used ..err.. was used to provide licensing for this session of DOORS. If you TELELOGIC_LICENSE_FILE contains more than one references, perhaps "7192@Server1;19353@Server2", I want to know which one was used.
That will help while debugging new license server; but later will help when we try to associate licensing with databases; this database MUST use THAT licensing.
Well, earlier in the week telnet worked:
>telnet Server1 7192
to see if this PC can reach that port and whether its active. But today that failed. Odd.
|
|
Re: Where is Licensing? HiLbiLy - Wed Jul 27 13:10:09 EDT 2011 llandale - Thu Jul 21 14:52:45 EDT 2011
Netstat dump gobly-gook to me.
From DXL I need to know exactly which license server is used ..err.. was used to provide licensing for this session of DOORS. If you TELELOGIC_LICENSE_FILE contains more than one references, perhaps "7192@Server1;19353@Server2", I want to know which one was used.
That will help while debugging new license server; but later will help when we try to associate licensing with databases; this database MUST use THAT licensing.
Well, earlier in the week telnet worked:
>telnet Server1 7192
to see if this PC can reach that port and whether its active. But today that failed. Odd.
I don't know how to do it with direct DXL, but you could do it a roundabout way using the flexlm tool. You can create a batch file using DXL to save a dump of the licenses used at each licenses server. Then you can open these files and look for your system username. The batch file should look like the following:
"C:\Record License Info\check-Licenses\bin\lmutil.exe" lmstat -c "7192@Server1" -a > "C:\Record License Info\7192@Server1.txt"
"C:\Record License Info\check-Licenses\bin\lmutil.exe" lmstat -c "19353@Server2" -a > "C:\Record License Info\19353@Server2.txt"
All this can be done in DXL but it is not a simple one line command.
HiLbiLy
|
|
Re: Where is Licensing? llandale - Wed Jul 27 16:23:12 EDT 2011 HiLbiLy - Wed Jul 27 13:10:09 EDT 2011
I don't know how to do it with direct DXL, but you could do it a roundabout way using the flexlm tool. You can create a batch file using DXL to save a dump of the licenses used at each licenses server. Then you can open these files and look for your system username. The batch file should look like the following:
"C:\Record License Info\check-Licenses\bin\lmutil.exe" lmstat -c "7192@Server1" -a > "C:\Record License Info\7192@Server1.txt"
"C:\Record License Info\check-Licenses\bin\lmutil.exe" lmstat -c "19353@Server2" -a > "C:\Record License Info\19353@Server2.txt"
All this can be done in DXL but it is not a simple one line command.
HiLbiLy
Wow, didn't know you could use lmutil on the client PC to query licensing on the server. Very handy thanks. There is a way to figure this out; but it looks awkward. Must know system user name and I think need to know client PC name, formulate a regexp, read the file looking for a match.
|
|
Re: Where is Licensing? HiLbiLy - Thu Jul 28 06:53:53 EDT 2011 llandale - Wed Jul 27 16:23:12 EDT 2011
Wow, didn't know you could use lmutil on the client PC to query licensing on the server. Very handy thanks. There is a way to figure this out; but it looks awkward. Must know system user name and I think need to know client PC name, formulate a regexp, read the file looking for a match.
Yeah, you got it right. It is awkward. I use this technique to email my users that stay logged in over night, as well as keep statistics of my licensing usage. Everything is DXL and batch files which outputs all the data into text files. I wish there was an easier way but it does the job.
|
|